package cn.lzd.mr.case10;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Created by lzd on 2019/7/16.
 */
public class Main {
    public static void main1(String[] args) {
        Set<String> dict =  new HashSet<>();

        try {
            List<String> list = FileUtils.readLines(new File(""));
            for (int i = 0; i < list.size(); i++) {
                String val = list.get(i);
                String[] split = val.split(",");
                Set<String> sets =  new HashSet<>();
                sets.addAll(Arrays.asList(split));


                
                for (String s1 : list) {
                    
                }
            }




        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        Set<String> dict =  new HashSet<>();
        dict.add(1+"");
        dict.add(2+"");

        for (String s : dict) {
            System.out.println(s);
            dict.add(s+System.nanoTime());
        }
    }
}
